package com.biz.primus.ms.depot.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * DepotDeliverPrice
 *
 * @author JKLiues
 * @date 2017年10月23日
 */
@Getter
@Setter
@Entity
@Table(name = "tb_depot_deliver_price")
public class DepotDeliverPrice extends BaseEntity {
    private static final long serialVersionUID = -5377905066289295664L;

    /**
     * 门店编码
     */
    @Column(unique = true)
    private String depotCode;

    /**
     * 门店名称
     */
    private String name;

    /**
     * 正常门店起送价
     */
    @Column(nullable = false)
    private Integer price;

    /**
     * 门店活动价起始时间
     */
    private Timestamp promotionBegin;

    /**
     * 门店活动价截止时间
     */
    private Timestamp promotionEnd;

    /**
     * 活动门店起送价
     */
    @Column(nullable = false)
    private Integer promotionPrice;
}